package com.lhkj.ct.meta.modules.gauge.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.lhkj.ct.base.validator.group.ValGroups;
import com.lhkj.ct.meta.modules.gauge.common.enums.GaugeType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 适用人群标签
 * </p>
 *
 * @author jobob
 * @since 2023-10-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TblGaugeUsability对象", description="适用人群标签")
public class TblGaugeUsability implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标签id")
    private String id;

    @NotBlank(message = "请输入名称", groups = {ValGroups.Insert.class, ValGroups.Update.class})
    @ApiModelProperty(value = "标签名称")
    private String uName;

    @NotNull(message = "类型不能为空", groups = {ValGroups.Get.class, ValGroups.Insert.class, ValGroups.Update.class})
    @ApiModelProperty(value = "类型 1.量表 2.问卷")
    private GaugeType uType;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人")
    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "修改人")
    private String updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;


}
